<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GrPPI: pipeline_pattern.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GrPPI
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Generic and Reusable Parallel Pattern Interface</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0966d06610f72609fd9aa4979c2b5a92.html">common</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">pipeline_pattern.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="pipeline__pattern_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright 2018 Universidad Carlos III de Madrid</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * you may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * limitations under the License.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#ifndef GRPPI_COMMON_PIPELINE_PATTERN_H</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define GRPPI_COMMON_PIPELINE_PATTERN_H</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegrppi.html">grppi</a> {</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> ... Transformers&gt;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__t.html">   30</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrppi_1_1pipeline__t.html">pipeline_t</a> {</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__t.html#ab6a687dc86cbb5ec289eefc325cfff35">   33</a></span>&#160;  <span class="keyword">using</span> <a class="code" href="classgrppi_1_1pipeline__t.html#ab6a687dc86cbb5ec289eefc325cfff35">transformers_type</a> = std::tuple&lt;Transformers...&gt;;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__t.html#a8dd5294efabb4e807be0a38e45527321">   40</a></span>&#160;  <a class="code" href="classgrppi_1_1pipeline__t.html#a8dd5294efabb4e807be0a38e45527321">pipeline_t</a>(Transformers &amp;&amp; ... others) noexcept :</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    transformers_{others...}</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  {}</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="keyword">template</span> &lt;std::size_t index, <span class="keyword">typename</span> T, <span class="keyword">typename</span> std::enable_if&lt; index == (<span class="keyword">sizeof</span>...(Transformers) -1) ,<span class="keywordtype">int</span>&gt;::type = 0 &gt;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__t.html#a5bf0fcf3abfc742d6af9bd5005fe2fae">   47</a></span>&#160;  <span class="keyword">auto</span> <a class="code" href="classgrppi_1_1pipeline__t.html#a5bf0fcf3abfc742d6af9bd5005fe2fae">invoke_all</a>(T item)<span class="keyword"> const</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;      <span class="keywordflow">return</span> invoke&lt;index&gt;(item);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  }</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="keyword">template</span> &lt;std::size_t index, <span class="keyword">typename</span> T, <span class="keyword">typename</span> std::enable_if&lt; index != (<span class="keyword">sizeof</span>...(Transformers) -1) ,<span class="keywordtype">int</span>&gt;::type = 0 &gt;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__t.html#a5bf0fcf3abfc742d6af9bd5005fe2fae">   53</a></span>&#160;  <span class="keyword">auto</span> <a class="code" href="classgrppi_1_1pipeline__t.html#a5bf0fcf3abfc742d6af9bd5005fe2fae">invoke_all</a>(T item)<span class="keyword"> const</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;      <span class="keywordflow">return</span> invoke_all&lt;index+1&gt;(invoke&lt;index&gt;(item));</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  }</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__t.html#a8aa7ed6d13fd7e69441b20cc001b658c">   59</a></span>&#160;  <span class="keyword">auto</span> <a class="code" href="classgrppi_1_1pipeline__t.html#a8aa7ed6d13fd7e69441b20cc001b658c">operator()</a>(T item)<span class="keyword"> const</span>{</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordflow">return</span> invoke_all&lt;0&gt;(item);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  <span class="keyword">template</span> &lt;std::<span class="keywordtype">size_t</span> I, <span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__t.html#a48438fe6502be7e746b8e4d9a8a04385">   68</a></span>&#160;  <span class="keyword">auto</span> <a class="code" href="classgrppi_1_1pipeline__t.html#a48438fe6502be7e746b8e4d9a8a04385">invoke</a>(T &amp;&amp; item)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">auto</span> f = std::get&lt;I&gt;(transformers_);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keywordflow">return</span> f(std::forward&lt;T&gt;(item));</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  }</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <span class="keyword">template</span> &lt;std::<span class="keywordtype">size_t</span> I&gt;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__t.html#a6cf08ebb443b5cd39278de1ff88c2ccc">   79</a></span>&#160;  <span class="keyword">auto</span> <a class="code" href="classgrppi_1_1pipeline__t.html#a6cf08ebb443b5cd39278de1ff88c2ccc">stage</a>() const noexcept {</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    static_assert(I&lt;<span class="keyword">sizeof</span>...(Transformers),</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;      <span class="stringliteral">&quot;Pipeline has not so many transformers&quot;</span>);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordflow">return</span> std::get&lt;I&gt;(transformers_);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classgrppi_1_1pipeline__t.html#a62003fb555e83aa045271adf3b7242bd">   85</a></span>&#160;  <span class="keyword">auto</span> <a class="code" href="classgrppi_1_1pipeline__t.html#a62003fb555e83aa045271adf3b7242bd">transformers</a>() const noexcept {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordflow">return</span> transformers_;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;  }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  std::tuple&lt;Transformers...&gt; transformers_;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;};</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structgrppi_1_1internal_1_1is__pipeline.html">   96</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrppi_1_1internal_1_1is__pipeline.html">is_pipeline</a> : std::false_type {};</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> ... T&gt;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structgrppi_1_1internal_1_1is__pipeline_3_01pipeline__t_3_01_t_8_8_8_01_4_01_4.html">   99</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrppi_1_1internal_1_1is__pipeline.html">is_pipeline</a>&lt;<a class="code" href="classgrppi_1_1pipeline__t.html">pipeline_t</a>&lt;T...&gt;&gt; :std::true_type {};</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;} <span class="comment">// namespace internal</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="namespacegrppi.html#af507e25fcb4d10f45c1d717d06c0bd79">  104</a></span>&#160;<span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> <a class="code" href="namespacegrppi.html#af507e25fcb4d10f45c1d717d06c0bd79">is_pipeline</a> = <a class="code" href="structgrppi_1_1internal_1_1is__pipeline.html">internal::is_pipeline&lt;std::decay_t&lt;T&gt;</a>&gt;();</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="namespacegrppi.html#a1c6e71cb617cee8d3216b1710891a349">  107</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespacegrppi.html#a1c6e71cb617cee8d3216b1710891a349">requires_pipeline</a> = <span class="keyword">typename</span> std::enable_if_t&lt;is_pipeline&lt;T&gt;, <span class="keywordtype">int</span>&gt;;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> I, <span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structgrppi_1_1internal_1_1output__value__type.html">  112</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrppi_1_1internal_1_1output__value__type.html">output_value_type</a> {</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structgrppi_1_1internal_1_1output__value__type.html#ad3d485e92ba46fba8ffc8eea10aee2e4">  113</a></span>&#160;  <span class="keyword">using</span> <a class="code" href="structgrppi_1_1internal_1_1output__value__type.html#ad3d485e92ba46fba8ffc8eea10aee2e4">type</a> = std::decay_t&lt;<span class="keyword">typename</span> std::result_of&lt;T(I)&gt;<a class="code" href="structgrppi_1_1internal_1_1output__value__type.html#ad3d485e92ba46fba8ffc8eea10aee2e4">::type</a>&gt;;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;};</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> I, <span class="keyword">typename</span> T, <span class="keyword">typename</span> ... U&gt;</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="structgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4.html">  117</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrppi_1_1internal_1_1output__value__type.html">output_value_type</a>&lt;I,<a class="code" href="classgrppi_1_1pipeline__t.html">pipeline_t</a>&lt;T,U...&gt;&gt; {</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="structgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4.html#a4bcdf45af54a770db6920d0f5c46fc6a">  118</a></span>&#160;  <span class="keyword">using</span> <a class="code" href="structgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4.html#a4bcdf45af54a770db6920d0f5c46fc6a">first_result</a> = std::decay_t&lt;<span class="keyword">typename</span> std::result_of&lt;T(I)&gt;<a class="code" href="structgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4.html#acfc4e21233c97189a76eb6df9f766db5">::type</a>&gt;;</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4.html#acfc4e21233c97189a76eb6df9f766db5">  119</a></span>&#160;  <span class="keyword">using</span> <a class="code" href="structgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4.html#acfc4e21233c97189a76eb6df9f766db5">type</a> = std::conditional_t&lt;<span class="keyword">sizeof</span>...(U)==0,</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <a class="code" href="structgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4.html#a4bcdf45af54a770db6920d0f5c46fc6a">first_result</a>,</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keyword">typename</span> <a class="code" href="structgrppi_1_1internal_1_1output__value__type.html">output_value_type&lt;first_result,U...&gt;::type</a></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  &gt;;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;};</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> I, <span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="namespacegrppi.html#a2c33363c4c49ab510560a0b880d52bfc">  128</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespacegrppi.html#a2c33363c4c49ab510560a0b880d52bfc">output_value_type</a> = <span class="keyword">typename</span> <a class="code" href="structgrppi_1_1internal_1_1output__value__type.html">internal::output_value_type&lt;I,T&gt;::type</a>;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassgrppi_1_1pipeline__t_html"><div class="ttname"><a href="classgrppi_1_1pipeline__t.html">grppi::pipeline_t</a></div><div class="ttdoc">Representation of pipeline pattern. Represents a pipeline with multiple chained transformers.</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:30</div></div>
<div class="ttc" id="aclassgrppi_1_1pipeline__t_html_a48438fe6502be7e746b8e4d9a8a04385"><div class="ttname"><a href="classgrppi_1_1pipeline__t.html#a48438fe6502be7e746b8e4d9a8a04385">grppi::pipeline_t::invoke</a></div><div class="ttdeci">auto invoke(T &amp;&amp;item) const</div><div class="ttdoc">Invokes a trasnformer from the pipeline.</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:68</div></div>
<div class="ttc" id="aclassgrppi_1_1pipeline__t_html_a5bf0fcf3abfc742d6af9bd5005fe2fae"><div class="ttname"><a href="classgrppi_1_1pipeline__t.html#a5bf0fcf3abfc742d6af9bd5005fe2fae">grppi::pipeline_t::invoke_all</a></div><div class="ttdeci">auto invoke_all(T item) const</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:47</div></div>
<div class="ttc" id="aclassgrppi_1_1pipeline__t_html_a62003fb555e83aa045271adf3b7242bd"><div class="ttname"><a href="classgrppi_1_1pipeline__t.html#a62003fb555e83aa045271adf3b7242bd">grppi::pipeline_t::transformers</a></div><div class="ttdeci">auto transformers() const noexcept</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:85</div></div>
<div class="ttc" id="aclassgrppi_1_1pipeline__t_html_a6cf08ebb443b5cd39278de1ff88c2ccc"><div class="ttname"><a href="classgrppi_1_1pipeline__t.html#a6cf08ebb443b5cd39278de1ff88c2ccc">grppi::pipeline_t::stage</a></div><div class="ttdeci">auto stage() const noexcept</div><div class="ttdoc">Gets a transformer from the pipeline.</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:79</div></div>
<div class="ttc" id="aclassgrppi_1_1pipeline__t_html_a8aa7ed6d13fd7e69441b20cc001b658c"><div class="ttname"><a href="classgrppi_1_1pipeline__t.html#a8aa7ed6d13fd7e69441b20cc001b658c">grppi::pipeline_t::operator()</a></div><div class="ttdeci">auto operator()(T item) const</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:59</div></div>
<div class="ttc" id="aclassgrppi_1_1pipeline__t_html_a8dd5294efabb4e807be0a38e45527321"><div class="ttname"><a href="classgrppi_1_1pipeline__t.html#a8dd5294efabb4e807be0a38e45527321">grppi::pipeline_t::pipeline_t</a></div><div class="ttdeci">pipeline_t(Transformers &amp;&amp;... others) noexcept</div><div class="ttdoc">Constructs a pipeline with several transformers.</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:40</div></div>
<div class="ttc" id="aclassgrppi_1_1pipeline__t_html_ab6a687dc86cbb5ec289eefc325cfff35"><div class="ttname"><a href="classgrppi_1_1pipeline__t.html#ab6a687dc86cbb5ec289eefc325cfff35">grppi::pipeline_t::transformers_type</a></div><div class="ttdeci">std::tuple&lt; Transformers... &gt; transformers_type</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:33</div></div>
<div class="ttc" id="anamespacegrppi_html"><div class="ttname"><a href="namespacegrppi.html">grppi</a></div><div class="ttdef"><b>Definition:</b> callable_traits.h:21</div></div>
<div class="ttc" id="anamespacegrppi_html_a1c6e71cb617cee8d3216b1710891a349"><div class="ttname"><a href="namespacegrppi.html#a1c6e71cb617cee8d3216b1710891a349">grppi::requires_pipeline</a></div><div class="ttdeci">typename std::enable_if_t&lt; is_pipeline&lt; T &gt;, int &gt; requires_pipeline</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:107</div></div>
<div class="ttc" id="anamespacegrppi_html_a2c33363c4c49ab510560a0b880d52bfc"><div class="ttname"><a href="namespacegrppi.html#a2c33363c4c49ab510560a0b880d52bfc">grppi::output_value_type</a></div><div class="ttdeci">typename internal::output_value_type&lt; I, T &gt;::type output_value_type</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:128</div></div>
<div class="ttc" id="anamespacegrppi_html_af507e25fcb4d10f45c1d717d06c0bd79"><div class="ttname"><a href="namespacegrppi.html#af507e25fcb4d10f45c1d717d06c0bd79">grppi::is_pipeline</a></div><div class="ttdeci">static constexpr bool is_pipeline</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:104</div></div>
<div class="ttc" id="astructgrppi_1_1internal_1_1is__pipeline_html"><div class="ttname"><a href="structgrppi_1_1internal_1_1is__pipeline.html">grppi::internal::is_pipeline</a></div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:96</div></div>
<div class="ttc" id="astructgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4_html_a4bcdf45af54a770db6920d0f5c46fc6a"><div class="ttname"><a href="structgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4.html#a4bcdf45af54a770db6920d0f5c46fc6a">grppi::internal::output_value_type&lt; I, pipeline_t&lt; T, U... &gt; &gt;::first_result</a></div><div class="ttdeci">std::decay_t&lt; typename std::result_of&lt; T(I)&gt;::type &gt; first_result</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:118</div></div>
<div class="ttc" id="astructgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4_html_acfc4e21233c97189a76eb6df9f766db5"><div class="ttname"><a href="structgrppi_1_1internal_1_1output__value__type_3_01_i_00_01pipeline__t_3_01_t_00_01_u_8_8_8_01_4_01_4.html#acfc4e21233c97189a76eb6df9f766db5">grppi::internal::output_value_type&lt; I, pipeline_t&lt; T, U... &gt; &gt;::type</a></div><div class="ttdeci">std::conditional_t&lt; sizeof...(U)==0, first_result, typename output_value_type&lt; first_result, U... &gt;::type &gt; type</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:122</div></div>
<div class="ttc" id="astructgrppi_1_1internal_1_1output__value__type_html"><div class="ttname"><a href="structgrppi_1_1internal_1_1output__value__type.html">grppi::internal::output_value_type</a></div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:112</div></div>
<div class="ttc" id="astructgrppi_1_1internal_1_1output__value__type_html_ad3d485e92ba46fba8ffc8eea10aee2e4"><div class="ttname"><a href="structgrppi_1_1internal_1_1output__value__type.html#ad3d485e92ba46fba8ffc8eea10aee2e4">grppi::internal::output_value_type::type</a></div><div class="ttdeci">std::decay_t&lt; typename std::result_of&lt; T(I)&gt;::type &gt; type</div><div class="ttdef"><b>Definition:</b> pipeline_pattern.h:113</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
